<div class="zs-body" data-ng-init="
		formInit('bpmconfig', {
			keyField:'actid',
			randomFields:['actid']
		}) && formInit('bpmtaskconfig', {
			keyField:'taskid',
			randomFields:['taskid']
		}) && loadData('bpmconfig');">
	<div class="zs-map-tool">
		<div class="location">
			<a >首页</a>
			<i class="right-arr"></i>
			<a >流程</a>
			<i class="right-arr"></i>
			<a >流程定义</a>
		</div>
		<div class="option">
			<input type="button" class="zs-btn orange" value="注册流程" 
				ng-click="openWindow('register');"/>
			<input type="button" class="zs-btn orange" value="编辑" 
				ng-click="editRow('bpmconfig', bpmconfig.sRows[0]) && openWindow('edit')"/>
			<input type="button" class="zs-btn orange" value="删除 " 
				ng-click="delEntitys('bpmconfig')"/>
		</div> 
	</div>
	
	<div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
        	<div class="tool item" style="margin-left:6px;">
        		
                <span class="search-warpper">
                    <i class="icon" ng-click="loadData('bpmconfig)"></i>
                    <input type="text" placeholder="所属分组" class="zs-input" ng-model="bpmconfig.queryObject['actdefid:like']"/>
                </span>
            </div>
            <div class="tool item" style="margin-left:6px;">
                <span class="search-warpper">
                    <i class="icon" ng-click="loadData('bpmconfig)"></i>
                    <input type="text" placeholder="流程名称" class="zs-input" ng-model="bpmconfig.queryObject['actdefname:like']"/>
                </span>
            </div>
             <div class="tool item" style="margin-left:6px;">
                <span class="search-warpper">
                    <i class="icon" ng-click="loadData('bpmconfig)"></i>
                    <input type="text" placeholder="流程ID" class="zs-input" ng-model="bpmconfig.queryObject['actdefid:like']"/>
                </span>
            </div>
            <div class="operation item">
                <a class="ope-1" ng-click="loadData('bpmconfig')"></a>
                <a class="ope-2"></a>
            </div>
            <div class="switch">
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                    	<table>
	                        <thead>
			                   <tr>
									<th>
										<input id="allCheckbox" type="checkbox"
											ng-click="selectAll('bpmconfig','allCheckbox');">
									</th>
									<th>流程定义ID</th>
									<th>流程名称</th>
									<th>所属分组</th>
								  <!--   <th>流程发布状态</th> -->
								</tr>
			                </thead>
			                <tbody>
			                    <tr ng-repeat="r in bpmconfig.datas">
									<td><input type="checkbox"
											ng-click="selectRow('bpmconfig',r);"
											ng-model="r.selected" />
									</td>
									<td>
										<a ng-click="editRow('bpmconfig',r) && openWindow('edit');">
											<label ng-bind="r.actdefid"></label>
										</a>
									</td>
									<td>
										<a ng-click="editRow('bpmconfig',r) && openWindow('edit');">
											<label ng-bind="r.actdefname"></label>
										</a>
									</td>
									<td>
										<a ng-click="editRow('bpmconfig',r) && openWindow('edit');">
											<label ng-bind="r.actgroup"></label>
										</a>
									</td>
								 <!--    <td>
									 <a ng-click="editRow('bpmconfig',r) && openWindow('edit');">
										 <label ng-bind="r.actpublish"></label>
									 </a>
								 </td> -->
								   
								</tr>
			                </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='bpmconfig'></ag-Page>
                </div>
            </div>
        </div>
        <div ag-Window id="edit" title="流程编辑" width='1200px' height='500px'>
	        <div class="zs-form-tab ibox">
	        	<form name="form" novalidate>
	        		<table>
				        <tbody>
				        	<tr>
	                            <td class="text" width="20%"><font color="red">*</font>任务ID</td>
	                            <td class="left" width="30%">
	                           		<input type="text" 
	                                name="formUserName" ng-model="bpmconfig.editRow.actdefid"
	                                class="zs-input" required></td>
	                            <td class="text" width="20%"><font color="red">*</font>任务名称</td>
	                            <td class="left" width="30%"><input type="text"
	                                ng-model="bpmconfig.editRow.actdefname" class="zs-input" required></td>
	                        </tr>
	                        <tr>
	                            <td class="text" width="20%"><font color="red">*</font>执行角色</td>
	                            <td class="left" width="30%">
	                            	<input type="text"
	                                ng-model="bpmconfig.editRow.actgroup" class="zs-input" required>
	                            </td>
	                            <td class="text" width="20%"><font color="red">*</font>项目URL</td>
		                        <td class="left" width="30%">
				                   <input type="text"
	                                ng-model="bpmconfig.editRow.prjurl" class="zs-input" required>
				                </td>
	                        </tr>
	                        <tr>
	                        	<td class="text" width="20%">表单名称</td>
	                            <td class="left" width="30%">
	                            	<input type="text"
	                                ng-model="bpmconfig.editRow.prjforname" class="zs-input">
	                            </td>
	                        	<td class="text" width="20%">表单ViewID</td>
		                        <td class="left" width="30%">
				                   	<input type="text"
	                                ng-model="bpmconfig.editRow.prjvi" class="zs-input">
				                </td>
	                        </tr>
	                       	<tr>
	                            <td class="text" width="20%">开始计时任务</td>
	                            <td class="left" width="30%"><input type="text"
	                                ng-model="bpmconfig.editRow.tlstatask" class="zs-input">
                                	<label style="color:red;">设置为空，取报件签收时间开始计算</label></td>
	                            <td class="text" width="20%">结束计时任务</td>
	                            <td class="left" width="30%"><input type="text"
	                                ng-model="bpmconfig.editRow.tlendtask" class="zs-input"></td>
	                        </tr>
	                        <tr>
	                            <td class="text" width="20%">总工作日(天)</td>
	                            <td class="left" colspan="3">
	                            		<input type="text"
	                                	ng-model="bpmconfig.editRow.tltotal" class="zs-input">
	                            </td>
	                        </tr>

	                        <tr>
	                            <td class="text" colspan="4" ><span style="float: left;"><font size="4" color="green">任务信息</span>
	                            <span style="float:right;">
                        			<input type="button" class="zs-btn orange" ng-click="addTask(bpmconfig.editRow);" value="新增记录">
									<input type="button" class="zs-btn orange"  ng-click="delSelectedTasks( bpmconfig.editRow.taskconfigs);" value="批量删除">
									</span></td>
	                        </tr>
				        </tbody>
				    </table>
				    <table>
				        <tbody>
				        	<tr><td style="width: 30px;">
				        		<input id="allCheckbox" type="checkbox"
											ng-click="selectAll('bpmconfig','allCheckbox');"></td>
	                            <td style="width: 80px;">任务ID</td>
	                            <td style="width: 80px;">任务名称</td>
	                            <td style="width: 80px;">执行角色</td>
	                            <td style="width: 280px;">按钮控制</td>
	                            <td style="width: 30px;">序号</td>
	                            <td style="width: 30px;">时限</td>
	                            <td style="width: 50px;">阶段</td>
	                            <td style="width: 30px;">操作</td>
	                        </tr>
	                        <tr ng-repeat="r in bpmconfig.editRow.taskconfigs">
	                        	<td><input type="checkbox"
											ng-click="selectRow('bpmconfig',r);"
											ng-model="r.selected" />
								</td>
	                            <td class="text" ><input type="text"
	                                ng-model="r.taskdefid" class="zs-input"></td>
	                            <td class="left" ><input type="text"
	                                ng-model="r.taskdefname" class="zs-input">
	                            </td>
	                            <td class="text" >
	                            		<!-- <input type="button" class="zs-btn c-red" ng-click="openWindow('edit2');" value="选择角色"> -->
	                            		<ag-Combotree class="zs-input" style="width:172px;height: 28px" 
										fn='orgidEdit'
										para="{ uDictionary:true,
											multiple:true,
											dictionary:'p_role',
											pidField:'pid',
											leafField:'leaf',
											onlyLeafCheck:true,
											bindField:'roleId',
											bindFn:'roles',
											intLoadLevel:2}"
										ng-model="r.userrole"
										text-Value="r.userroleName"/>
									</td>
		                        <td class="left" > 

		                        	<label><input
										type="checkbox" ng-model="r.opttj" ng-true-value="1"
										ng-false-value="0">提交</label>

										
		                        	<label>
				                    <input type="checkbox" ng-model="r.optth"
										ng-true-value="1" ng-false-value="0">退回</label> 
										
										

										 <label><input
										type="checkbox" ng-model="r.optch" ng-true-value="1"
										ng-false-value="0">撤回</label> 
										
										<label><input
										type="checkbox" ng-model="r.optcx" ng-true-value="1"
										ng-false-value="0">撤销</label> 
										
										<label><input
										type="checkbox" ng-model="r.optjh" ng-true-value="1"
										ng-false-value="0">激活</label> 

										<label><input
										type="checkbox" ng-model="r.optgq" ng-true-value="1"
										ng-false-value="0">挂起</label> 

										<label><input
										type="checkbox" ng-model="r.optjg" ng-true-value="1"
										ng-false-value="0">解挂</label> 

										<label><input
										type="checkbox" ng-model="r.opttz" ng-true-value="1"
										ng-false-value="0">跳转</label> 

										<label>
										<input
										type="checkbox" ng-model="r.optbc" ng-true-value="1"
										ng-false-value="0">保存</label> 

										<!-- <label><input
										type="checkbox" ng-model="r.S_LCT" ng-true-value="1"
										ng-false-value="0">办理过程</label> -->

				                </td>
				                <td class="left" ><input type="text"
	                                ng-model="r.taskorder" class="zs-input">
	                            </td>
				                 <td class="left" ><input type="text"
	                                ng-model="r.tasktl" class="zs-input">
	                            </td>
	                             <td class="left" ><input type="text"
	                                ng-model="r.taskgroup" class="zs-input">
	                            </td>
	                             <td class="left" ><a ng-click="setTaskEditRow($index) && openWindow('cEdit')">编辑</a>
	                            </td>
	                        </tr>
				        </tbody>
				        <tfoot>
				          <tr>
				              <td colspan="5">
				                  <input type="button" name="ok" value="保存" class="zs-btn c-red"
				                  	ng-click="formValidate(form) && save('bpmconfig', bpmconfig.editRow, editBpmSus)"/>
				                  <input type="button" name="ok" value="取消" class="zs-btn c-green" 
				                  	ng-click="closeWindow('edit')" />
				              </td>
				          </tr>
				      </tfoot> 
				    </table>
				</form>
			</div>
	    </div>

	    <div ag-Window id="edit2" title="角色选择" width='420px' height='180px'>
	        <div class="zs-form-tab ibox">
	        	<form name="form2" novalidate>

	        	<ag-Tree para="{ uDictionary:true,
							dictionary:'p_role',
							pidField:'pid',
							leafField:'leaf',
							onlyLeafCheck:true,
							bindField:'roleId',
							bindFn:'roles',
							intLoadLevel:2}"
					ng-model="roles" />
				</form>
			</div>
	    </div>

	     <div ag-Window id="register" title="流程注册" width='420px' height='100px'>
	        <div class="zs-form-tab ibox">
	        	<form name="formregister" novalidate>
				   <table>
				       <tbody>
				       	<tr>
                            <td class="text" width="20%">流程ID</td>
                            <td colspan="3" class="left" width="80%">
                            	<input type="text" alias="帐号"
                                	ng-model="registerId"
                                	class="zs-input" required>
                            </td>
                        </tr>
				       </tbody>
				       <tfoot>
				           <tr>
				               <td colspan="5">
				                   <input type="button" name="ok" value="注册" class="zs-btn c-red"
				                   	ng-click="registerBpm(registerId,registerBpmSus,null)" />
				                   <input type="button" name="ok" value="取消" class="zs-btn c-green" 
				                   	ng-click="closeWindow('register')" />
				               </td>
				           </tr>
				       </tfoot>
				   </table>
				</form>
			</div>
	    </div>

	    <!-- 节点编辑-s -->
		<div ag-Window id="cEdit" title="任务编辑" width='1200px' height='500px'>
	        <div class="zs-form-tab ibox">
	        	<form name="cform" novalidate>
				   <table class="fore-common-form-tabs" width="100%">
					<tr>
						<td class="text" width="20%">*任务ID:</td>
						<td class="input" width="30%"><input type="text"
							name="taskdefid" class="zs-input"
							ng-model="bpmtaskconfig.editRow.taskdefid" required /> <small
							ng-show="cform.taskdefid.$invalid && cform.taskdefid.$error.required">必填
						</small></td>
						<td class="text" width="20%">*任务名称:</td>
						<td class="input" width="30%"><input type="text"
							name="taskdefname" class="zs-input"
							ng-model="bpmtaskconfig.editRow.taskdefname" required /> <small
							ng-show="cform.taskdefname.$invalid && cform.taskdefname.$error.required">必填
						</small></td>
					</tr>
					<tr>
						<td class="text" width="20%">阶段名称:</td>
						<td class="input" width="30%"><input type="text"
							name="taskgroup" class="zs-input"
							ng-model="bpmtaskconfig.editRow.taskgroup" /></td>
						<td class="text" width="20%">排序号:</td>
						<td class="input" width="30%"><input type="text"
							name="taskorder" class="zs-input"
							ng-model="bpmtaskconfig.editRow.taskorder" /></td>
					</tr>
					 <tr>
                            <td class="text" colspan="4" data-ng-init="setTab('bpm_tab', 'tab1');">
                            <span style="float: left;"><a ng-click="setTab('bpm_tab', 'tab1');"
											class="{{tabs['bpm_tab'].tabClass['tab1']}}"><font size="4" color="green">基础属性</font></a></span></span>

                            <span style="float: left;">&nbsp;</span><span style="float: left;"><a ng-click="setTab('bpm_tab', 'tab3');"
											class="{{tabs['bpm_tab'].tabClass['tab3']}}"><font size="4" color="green">任务通知</font></a></span>

                             <span style="float: left;">&nbsp;</span><span style="float: left;"><a ng-click="setTab('bpm_tab', 'tab4');"
											class="{{tabs['bpm_tab'].tabClass['tab4']}}"><font size="4" color="green">任务催办</font></a></span>

                            <span style="float: left;">&nbsp;</span><span style="float: left;"><a ng-click="setTab('bpm_tab', 'tab2');"
											class="{{tabs['bpm_tab'].tabClass['tab2']}}"><font size="4" color="green">任务分配</font></a></span>

                            </td>
                    </tr>
                    </table>
					<table class="fore-common-form-tabs" width="100%"
						ng-show="tabs['bpm_tab'].tabShow['tab1']">
						<tr>
							<td class="text" width="20%">执行角色:</td>
							<td class="left" width="30%"><ag-Combotree class="zs-input" style="width:172px;height: 28px" 
										fn='orgidEdit'
										para="{ uDictionary:true,
											multiple:true,
											dictionary:'p_role',
											pidField:'pid',
											leafField:'leaf',
											onlyLeafCheck:true,
											bindField:'roleId',
											bindFn:'roles',
											intLoadLevel:2}"
										ng-model="bpmtaskconfig.editRow.userrole"
										text-Value="bpmtaskconfig.editRow.userroleName"/></td>
							<td class="text" width="20%">办理时限:</td>
							<td class="left" width="30%"><input
								type="text" class="zs-input" style="width: 80%;"
								ng-model="bpmtaskconfig.editRow.tasktl" /> <label>工作日</label></td>
						</tr>
						<tr>
							<td class="text" width="20%">按钮显示配置:</td>
							<td class="left" width="80%" colspan="3">

									<label>
				                    <input type="checkbox" ng-model="bpmtaskconfig.editRow.optth"
										ng-true-value="1" ng-false-value="0">退回</label> 
										
										<label><input
										type="checkbox" ng-model="bpmtaskconfig.editRow.opttj" ng-true-value="1"
										ng-false-value="0">退件</label>

										 <label><input
										type="checkbox" ng-model="bpmtaskconfig.editRow.optch" ng-true-value="1"
										ng-false-value="0">撤回</label> 
										
										<label><input
										type="checkbox" ng-model="bpmtaskconfig.editRow.optcx" ng-true-value="1"
										ng-false-value="0">撤销</label> 
										
										<label><input
										type="checkbox" ng-model="bpmtaskconfig.editRow.optjh" ng-true-value="1"
										ng-false-value="0">激活</label> 

										<label><input
										type="checkbox" ng-model="bpmtaskconfig.editRow.optgq" ng-true-value="1"
										ng-false-value="0">挂起</label> 

										<label><input
										type="checkbox" ng-model="bpmtaskconfig.editRow.optjg" ng-true-value="1"
										ng-false-value="0">解挂</label> 

										<label><input
										type="checkbox" ng-model="bpmtaskconfig.editRow.opttz" ng-true-value="1"
										ng-false-value="0">跳转</label> 

										<label>
										<input
										type="checkbox" ng-model="bpmtaskconfig.editRow.optbc" ng-true-value="1"
										ng-false-value="0">保存</label> 
							</td>
						</tr>
						<tr>
							<td class="text" width="20%">Tab显示配置:</td>
							<td class="left" width="80%" colspan="3"><input
								type="text" class="zs-input" style="width:100%"
								ng-model="bpmtaskconfig.editRow.prjtab" />
								<span style="float: left;"><font color="red">如：tab1</font></span></td>
						</tr>
						<tr >
							<td class="text" width="20%">表单显示配置:</td>
							<td class="left" width="80%" colspan="3"  ><textarea
									rows="2" cols="8" class="zs-input" style="width:100%;height: 80px;"
									ng-model="bpmtaskconfig.editRow.prjshow"></textarea><span style="float: left;"><font color="red">如："tj":true,"th":true</font></span>
							</td>
						</tr>
						<!--<tr>
							<td class="text" width="20%">审批历史配置:</td>
							<td class="left" width="80%" colspan="3"><textarea
									rows="2" cols="8" class="zs-input" style="width:100%;height: 80px;"
									ng-model="bpmtaskconfig.editRow.hisconfig"></textarea><br />
								<font color="red">格式如：S_OPTION=操作字段,S_OPTIONCONTENT=审批内容字段</font><br />
								<font color="red">不配置，S_OPTION默认为前端提供，S_OPTIONCONTENT默认为空</font></td>
						</tr>-->
					</table>

					<table class="fore-common-form-tabs" width="100%"
						ng-show="tabs['bpm_tab'].tabShow['tab2']">
						<tr>
							<td class="text" width="20%">任务分配:</td>
							<td class="left" width="80%" colspan="3"><textarea style="width:100%;height: 60px;"
									rows="4" cols="8" class="zs-input"
									ng-model="bpmtaskconfig.editRow.userexpress"></textarea></td>
						</tr>
						<tr>
							<td class="text" width="20%">任务分配说明:</td>
							<td class="left" width="80%" colspan="3">
								<font color="red"><b>function test(){}</b>：函数test遵循javascript语法规则，且函数返回值必须为bool类型<br/>
								<b>{业务表单字段}</b>：从表单中所取值。所取字段在上级的“提取字段”中。字段都为大写。<br />
								<!--<b>{SP_USERID}</b>：审批用户ID。<br /> -->
								<b>{SP_ORGID}</b>：审批用户的机构ID。<br />
								<!--<b>{SP_DEPTID}</b>：审批用户的部门ID。<br />
								<b>{SP_ZQID}</b>：审批用户的政区ID。<br />-->

								<!--<b>{JB_USERID}</b>：经办用户ID。<br /> -->
								<b>{JB_ORGID}</b>：经办用户的机构ID。<br />
								<!--<b>{JB_DEPTID}</b>：经办用户的部门ID。<br />
								<b>{JB_ZQID}</b>：经办用户的政区ID。<br />
								<b>{PROJECT_ZQID}</b>：项目所在的行政区ID（县级行政区ID）。<br />--></font>
							</td>
						</tr>
						<!--<tr>
							<td class="text" width="20%">自定义字段:</td>
							<td class="left" width="80%" colspan="3"><textarea style="width:100%"
									rows="4" cols="8" class="zs-input"
									ng-model="bpmtaskconfig.editRow.usercusfld"></textarea></td>
						</tr>-->
					</table>

					<table class="fore-common-form-tabs" width="100%"
						ng-show="tabs['bpm_tab'].tabShow['tab3']">
						<tr>
							<td class="text" width="20%">通知经办人:</td>
							<td class="left" width="80%" colspan="3"><label><input
									type="checkbox" ng-model="bpmtaskconfig.editRow.notjb"
									ng-true-value="1" ng-false-value="0">通知</label></td>
						</tr>
						<tr>
							<td class="text" width="20%">经办人通知模板:</td>
							<td class="left" width="80%" colspan="3"><textarea style="width:100%;height: 80px;"
									rows="4" cols="8" class="zs-input"
									ng-model="bpmtaskconfig.editRow.notjbmb"></textarea></td>
						</tr>
						<tr>
							<td class="text" width="20%">通知待办人:</td>
							<td class="left" width="80%" colspan="3"><label><input
									type="checkbox" ng-model="bpmtaskconfig.editRow.notdb"
									ng-true-value="1" ng-false-value="0">通知</label></td>
						</tr>
						<tr>
							<td class="text" width="20%">待办人通知模板:</td>
							<td class="left" width="80%" colspan="3"><textarea style="width:100%;height: 80px;"
									rows="4" cols="8" class="zs-input"
									ng-model="bpmtaskconfig.editRow.notdbmb"></textarea></td>
						</tr>
						<tr>
							<td class="text" width="20%">通知历史处理人:</td>
							<td class="left" width="80%" colspan="3"><label><input
									type="checkbox" ng-model="bpmtaskconfig.editRow.notyb"
									ng-true-value="1" ng-false-value="0">通知</label></td>
						</tr>
						<tr>
							<td class="text" width="20%">历史处理人通知模板:</td>
							<td class="left" width="80%" colspan="3"><textarea style="width:100%;height: 80px;"
									rows="4" cols="8" class="zs-input"
									ng-model="bpmtaskconfig.editRow.notybmb"></textarea></td>
						</tr>
						<tr>
							<td class="text" width="20%">通知方式:</td>
							<td class="left" width="80%" colspan="3"><label><input
									type="checkbox" ng-model="bpmtaskconfig.editRow.notxt"
									ng-true-value="1" ng-false-value="0">系统通知</label> <label><input
									type="checkbox" ng-model="bpmtaskconfig.editRow.notemail"
									ng-true-value="1" ng-false-value="0">Email通知</label> <label><input
									type="checkbox" ng-model="bpmtaskconfig.editRow.notmeg"
									ng-true-value="1" ng-false-value="0">手机短信通知</label></td>
						</tr>
						<tr>
							<td class="text" width="20%">自定义通知:</td>
							<td class="left" width="80%" colspan="3"><textarea style="width:100%;height: 80px;"
								rows="4" cols="8" class="zs-input"
								ng-model="bpmtaskconfig.editRow.notuserdef" ></textarea> <br />
								<font color="red">实现ICustomBpmNotice接口类的Spring注册名称。</font></td>
						</tr>
						<tr>
							<td class="text" width="20%">通知模板说明:</td>
							<td class="left" width="80%" colspan="3">
								<font color="red">
								<b>{BpmDefinitionName}</b>:工作流定义名称
								<b>{BpmGroupName}</b>:工作流所在分组名称<br /> <b>{TaskDefinitionName}</b>:当前任务定义名称
								<b>{TaskTitle}</b>:流程任务的业务名称<br /> <b>{ApplyUser}</b>:流程发起人<b>{TaskUser}</b>:流程任务的处理人
								<b>{TaskTime}</b>:流程任务的处理时间<br /> <b>{PreviousUser}</b>:前置任务办理人
								<b>{TaskEndTime}</b>:任务时限时间 <b>{TaskResult}</b>:任务处理结果</font>
							</td>
						</tr>
					</table>
					<table class="fore-common-form-tabs" width="100%"
						ng-show="tabs['bpm_tab'].tabShow['tab4']">
						<tr>
							<td class="text" width="20%">启用催办:</td>
							<td class="left" width="80%" colspan="3"><label><input
									type="checkbox" ng-model="bpmtaskconfig.editRow.remuse"
									ng-true-value="1" ng-false-value="0">启用</label></td>
						</tr>
						<tr>
							<td class="text" width="20%">催办条件:</td>
							<td class="left" width="80%" colspan="3">
								<label>任务创建</label>
								<input type="text" class="zs-input" style="width: 50px;" 
								ng-model="bpmtaskconfig.editRow.remcreate" /> <label>小时后</label> <br />

								<label>超时时限</label> <input type="text" style="width: 50px;" 
								class="zs-input" ng-model="bpmtaskconfig.editRow.rembefor" />

								<label>小时</label> <br /> <label>完成期限</label> <input
								type="text" class="zs-input" style="width: 50px;" 
								ng-model="bpmtaskconfig.editRow.remout" /> <label>小时前</label></td>
						</tr>
						<tr>
							<td class="text" width="20%">通知模板:</td>
							<td class="left" width="80%" colspan="3"><textarea style="width:100%;height: 80px;"
									rows="4" cols="8" class="zs-input"
									ng-model="bpmtaskconfig.editRow.remmb"></textarea></td>
						</tr>
						<tr>
							<td class="text" width="20%">通知方式:</td>
							<td class="left" width="80%" colspan="3"><label><input
									type="checkbox" ng-model="bpmtaskconfig.editRow.remxt"
									ng-true-value="1" ng-false-value="0">系统通知</label> <label><input
									type="checkbox" ng-model="bpmtaskconfig.editRow.rememail"
									ng-true-value="1" ng-false-value="0">Email通知</label> <label><input
									type="checkbox" ng-model="bpmtaskconfig.editRow.remmsg"
									ng-true-value="1" ng-false-value="0">手机短信通知</label></td>
						</tr>
						<tr>
							<td class="text" width="20%">自定义催办:</td>
							<td class="left" width="80%" colspan="3"><textarea style="width:100%;height: 80px;"
								rows="4" cols="8" class="zs-input"
								ng-model="bpmtaskconfig.editRow.remuserdef" ></textarea><br />
								<font color="red">实现ICustomBpmReminders接口类的Spring注册名称。</td>
						</tr>
						<tr>
							<td class="text" width="20%">通知模板说明:</td>
							<td class="left" width="80%" colspan="3">
								<font color="red"><b>{BpmDefinitionName}</b>:工作流定义名称
								<b>{BpmGroupName}</b>:工作流所在分组名称<br /> <b>{TaskDefinitionName}</b>:当前任务定义名称
								<b>{TaskTitle}</b>:流程任务的业务名称<br /> <b>{TaskTime}</b>:流程任务的处理时间
								<b>{TaskSurplusTime}</b>:任务时限时间(小时)<br /> <b>{TaskEndTime}</b>:任务时限时间</font>
							</td>
						</tr>
					</table>
					<table>			
					<tr>
						<td class="btn" colspan="6" align="center"><input
							type="button" name="OK" value="保存编辑" class="zs-btn c-red"
							ng-disabled="cform.$invalid"
							ng-click="saveTaskEditRow() && setTab('bpm_tab', 'tab1');">
								<input type="button" name="close" value="返回"
								class="zs-btn c-red" ng-click="closeWindow('cEdit');setTab('bpm_tab','tab1');"></td>
					</tr>
				</table>
				</form>
			</div>
	    </div>
	    <!-- 节点编辑-e -->

    </div>
</div>